<template>
  <div>
    <!-- 购物车单组件 -->
    <div>
      <shoppingcart-box :shoppingcartonechild="shoppingcartonechild"></shoppingcart-box>
      <!-- 结算-->
      <div class="close_check">
        <div>
          <i></i>
          <div class="close_check_del">
            <span>全选</span>
            <span>删除</span>
          </div>
          <div class="close_check_price">
            <span>总计：</span>
            <span class="close_price">￥998.00</span>
            <p>(不含运费)</p>
          </div>
        </div>
        <div class="settle">去结算</div>
      </div>
    </div>
  </div>
</template>

<script>
import shoppingcartonechild from "./shoppingcartonechild.vue";
export default {
  components: {
    ShoppingcartBox: shoppingcartonechild
  },
  data() {
    return {
      shoppingcartonechild: []
    };
  },
  created() {
    this.getdata();
  },
  methods: {
    getdata() {
      this.$axios.get("http://localhost:8080/abc").then(data => {
        this.shoppingcartonechild = data.data.shoppingcart;
        console.log(this.shoppingcartonechild);
      });
    }
  }
};
</script>

<style scoped>
div.close_check {
  display: flex;
  justify-content: space-between;
  position: fixed;
  width: 100%;
  height: 52px;
  bottom: 40px;
}
div.settle {
  width: 30%;
  text-align: center;
  height: 50px;
  line-height: 50px;
  font-size: 20px;
  border: 1px solid #f13e54;
  background: #f13e54;
  color: #feffff;
  position: absolute;
  right: 0px;
  bottom: 0px;
}
div.close_check_del {
  position: absolute;
  bottom: 20px;
  width: 30%;
  margin-left: 30px;
}
div.close_check i {
  position: absolute;
  display: inline-block;
  border: 1px solid #f13e54;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  bottom: 20px;
  left: 15px;
}
div.close_check_del span:last-child {
  margin-left: 70px;
  color: #f13e54;
}
div.close_check_del span:first-child {
  position: absolute;
  display: inline-block;
  margin-left: 20px;
}
div.close_check_price {
  position: absolute;
  left: 160px;
}
div.close_check_price p {
  color: #a2a2a2;
  font-size: 12px;
  margin-left: 60px;
}
span.close_price {
  color: #f13e54;
}
</style>
